def add(*args):
    sum = 0
    for num in args:
        sum += num
    return sum


print(add(1, 2, 3, 4, 5, 6, 7, 8, 9))
print(add(*(1, 2, 3, 4)))
print(add(*[1, 2, 3, 4]))
